package cn.historia.domain.activity.service.quota;

import cn.historia.domain.activity.model.entity.ActivityCountEntity;
import cn.historia.domain.activity.model.entity.ActivityEntity;
import cn.historia.domain.activity.model.entity.ActivitySkuEntity;
import cn.historia.domain.activity.repository.IActivityRepository;
import cn.historia.domain.activity.service.quota.rule.factory.DefaultActivityChainFactory;

/**
 * @package: cn.historia.domain.activity.service
 * @className: RaffleActivitySupport
 * @author: 云溪
 * @description:
 * @date: 2025/9/19 16:00
 * @version: 1.0
 */
public class RaffleActivityAccountQuotaSupport {

    protected IActivityRepository activityRepository;

    protected DefaultActivityChainFactory defaultActivityChainFactory;

    public RaffleActivityAccountQuotaSupport(IActivityRepository activityRepository, DefaultActivityChainFactory defaultActivityChainFactory) {
        this.activityRepository = activityRepository;
        this.defaultActivityChainFactory = defaultActivityChainFactory;
    }

    public ActivitySkuEntity queryActivitySku(Long sku){
        return activityRepository.queryActivitySku(sku);
    }

    public ActivityEntity queryRaffleActivityByActivityId(Long activityId){
        return activityRepository.queryRaffleActivityByActivityId(activityId);
    }

    public ActivityCountEntity queryRaffleActivityCountByActivityCountId(Long activityCountId){
        return activityRepository.queryRaffleActivityCountByActivityCountId(activityCountId);
    }

}
